# Contributor: Philipp Glaum <p@pglaum.de>
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=py3-rebulk
_pkgname=rebulk
pkgver=3.0.1
pkgrel=3
pkgdesc="Define simple search patterns in bulk to perform advanced matching on any string"
url="https://pypi.org/project/rebulk/"
arch="noarch"
license="MIT"
depends="python3 py3-six py3-regex"
makedepends="py3-setuptools py3-pytest-runner"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	py.test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/rebulk/test
}

sha512sums="a1e3ed157b262a2bbe214a01a0959372989eb354dae8ac185b2142564f7ec41e20e2e6e380f85aef14679b42d2d6a54a37076c0ebe47da2444ac2f71bcded9db  rebulk-3.0.1.tar.gz"
